package ${package}.model.vo;

import com.yvon.maple.cloud.pojo.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
<#if hasBigDecimal>
import java.math.BigDecimal;
</#if>

/**
* ${tableRemark} 请求参数
*
* @author : ${author}
* @since : ${date}
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("${tableRemark}请求参数")
public class ${className}DTO extends BaseDTO implements Serializable {
<#if columns??>
    <#list columns as column>
        <#if column.columnName == 'id' || column.columnName == 'create_by' || column.columnName == 'create_date' || column.columnName == 'update_by' || column.columnName == 'update_date'>
        <#else>

            /**
            *<#if column.remark != ''>${column.remark}<#else>${column.changeColumnName}</#if>
            */
            @ApiModelProperty(value = "${column.remark}" <#if column.istNotNull && column.columnKey != 'PRI'>, required = true</#if>)
            <#if column.istNotNull && column.columnKey != 'PRI'>
                <#if column.columnType = 'String'>
            @NotBlank(message = "${column.remark}不能为空")
                <#else>
            @NotNull(message = "${column.remark}不能为空")
                </#if>
            </#if>
            private ${column.columnType} ${column.changeColumnName};
        </#if>
    </#list>
</#if>
}